﻿using System;
using System.Collections.Generic;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using QSHC.LibrarySL.MVVM;
using QSHC.QSchedule.Silverlight.Models;
using QSHC.QSchedule.Web.Models;

namespace QSHC.QSchedule.Silverlight.ViewModels
{
    public class PhysicianScheduleWindowViewModel : ViewModelBase
    {
        #region Propeties

        #region Property Services
        private IEnumerable<Service> _services;
        public IEnumerable<Service> Services
        {
            get { return _services; }
            set
            {
                if (_services != value)
                {
                    _services = value;
                    OnPropertyChanged(() => Services);
                }
            }
        }
        #endregion

        #region Property DayOfWeeks
        public DayOfWeekClass[] DayOfWeeks
        {
            get
            {
                return new[]
                { 
                    new DayOfWeekClass { ID = 1, Name ="จันทร์" },
                    new DayOfWeekClass { ID = 2, Name ="อังคาร" },
                    new DayOfWeekClass { ID = 3, Name ="พุธ" },
                    new DayOfWeekClass { ID = 4, Name ="พฤหัสบดี" },
                    new DayOfWeekClass { ID = 5, Name ="ศุกร์" },
                    new DayOfWeekClass { ID = 6, Name ="เสาร์" },
                    new DayOfWeekClass { ID = 0, Name ="อาทิตย์" },
                };
            }
        }
        #endregion

        #region Property Quata
        private int _quota;
        public int Quata
        {
            get { return _quota; }
            set
            {
                if (_quota != value)
                {
                    _quota = value;
                    OnPropertyChanged(() => Quata);
                }
            }
        }
        #endregion

        #region Property PhysicianSchedule
        private PhysicianSchedule _physicianSchedule;
        public PhysicianSchedule PhysicianSchedule
        {
            get { return _physicianSchedule; }
            set
            {
                if (_physicianSchedule != value)
                {
                    _physicianSchedule = value;
                    OnPropertyChanged(() => PhysicianSchedule);
                }
            }
        }
        #endregion

        #endregion
    }
}
